package com.ruoyi.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 对象存储配置对象 sys_oss_config
 *
 * @author ruoyi
 * @date 2023-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_oss_config")
public class SysOssConfigDo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主建
     */
    @TableId(value = "oss_config_id")
    private Long ossConfigId;
    /**
     * 配置key
     */
    @TableField(value = "config_key")
    private String configKey;
    /**
     * accessKey
     */
    @TableField(value = "access_key")
    private String accessKey;
    /**
     * 秘钥
     */
    @TableField(value = "secret_key")
    private String secretKey;
    /**
     * 桶名称
     */
    @TableField(value = "bucket_name")
    private String bucketName;
    /**
     * 前缀
     */
    @TableField(value = "prefix")
    private String prefix;
    /**
     * 访问站点
     */
    @TableField(value = "endpoint")
    private String endpoint;
    /**
     * 自定义域名
     */
    @TableField(value = "domain")
    private String domain;
    /**
     * 是否https（Y=是,N=否）
     */
    @TableField(value = "is_https")
    private String isHttps;
    /**
     * 域
     */
    @TableField(value = "region")
    private String region;
    /**
     * 桶权限类型(0=private 1=public 2=custom)
     */
    @TableField(value = "access_policy")
    private String accessPolicy;
    /**
     * 是否默认（0=是,1=否）
     */
    @TableField(value = "status")
    private String status;
    /**
     * 扩展字段
     */
    @TableField(value = "ext1")
    private String ext1;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

}
